package com.liaowei.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章-评论表
 * @TableName wy_article_comment
 */
@TableName(value ="wy_article_comment")
@Data
public class ArticleComment implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    private Long articleId;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 评论人id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 回复的id（文章id或评论人id）
     */
    @TableField(value = "reply_id")
    private Long replyId;

    /**
     * 回复的id（文章id或评论人id）
     */
    @TableField(value = "reply_type")
    private Integer replyType;

    /**
     * 评论的点赞数
     */
    @TableField(value = "star_num")
    private Integer starNum;

    /**
     * 父节点id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 评论人的点赞状态 0-未点赞 1-点赞
     */
    @TableField(value = "star_status")
    private Integer starStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}